package handler

import "net/http"

// serveSingleFile registers the handler function for the given pattern and filename.
func serveSingleFile(pattern string, filename string) {
	http.HandleFunc(pattern, func(w http.ResponseWriter, r *http.Request) {
		http.ServeFile(w, r, filename)
	})
}
